package routers

import (
	"device-admin/internal/app/web/controller"
	"device-admin/internal/app/web/middleware"

	"github.com/gin-gonic/gin"
)

func monitor(rg *gin.RouterGroup) {
	rg.GET("/get-volume", controller.Monitor{}.GetVolume)                       //获取音量设置
	rg.POST("/set-volume", controller.Monitor{}.SetVolume)                      // 设置音量
	rg.Use(middleware.DeviceOnlineCheck())                                      // 设备在线中间件
	rg.GET("/order-video-info", controller.Monitor{}.GetOrderVideoInfo)         // 获取订单视频信息
	rg.GET("/order-video", controller.Monitor{}.GetOrderVideo)                  // 获取订单视频
	rg.POST("/start-task", controller.Monitor{}.StartTask)                      // 启动任务
	rg.POST("/continue-task", controller.Monitor{}.ContinueTask)                // 继续任务
	rg.POST("/pause-task", controller.Monitor{}.PauseTask)                      // 暂停任务
	rg.POST("/stop-task", controller.Monitor{}.StopTask)                        // 停止任务
	rg.POST("/resume-task", controller.Monitor{}.ResumeTask)                    // 恢复任务
	rg.POST("/resume-exception-task", controller.Monitor{}.ResumeExceptionTask) // 恢复任务[异常]
	rg.POST("/end-task", controller.Monitor{}.EndTask)                          // 终止任务
	rg.POST("/auto-relocation", controller.Monitor{}.AutoRelocation)            // 自动重定位
	rg.POST("/relocation", controller.Monitor{}.Relocation)                     // 重定位
	rg.POST("/shutdown", controller.Monitor{}.Shutdown)                         // 关机
	rg.POST("/charge", controller.Monitor{}.SetCharge)                          // 充电
	rg.POST("/set-device-opt", controller.Monitor{}.SetDeviceOpt)               // 远程排障
	rg.POST("/push-flow", controller.Monitor{}.PushFlow)                        // 打开推流
	rg.POST("/stop-push-flow", controller.Monitor{}.StopPushFlow)               // 停止推流
	rg.POST("/take-over", controller.Monitor{}.TakeOver)                        // 人工接管
	rg.POST("/set-door-status", controller.Monitor{}.SetDoorStatus)             // 远程开锁
	rg.POST("/set-lift-position", controller.Monitor{}.SetLiftPosition)         // 设置升降盘的位置
	rg.POST("/play-tts", controller.Monitor{}.PlayTTS)                          // 播放tts
	rg.POST("/quick-reply/add", controller.Monitor{}.AddQuickReply)             // 添加快捷回复
	rg.POST("/quick-reply/edit", controller.Monitor{}.EditQuickReply)           // 编辑快捷回复
	rg.POST("/quick-reply/delete", controller.Monitor{}.DeleteQuickReply)       // 删除快捷回复
	rg.GET("/quick-reply/list", controller.Monitor{}.QuickReplyList)            // 快捷回复列表
}
